/*
 * VendorItemBO.java
 *
 * Created on March 5, 2007, 8:07 PM
 * 
 */

package edu.byu.isys413.group1E.data;

import java.util.Calendar;
import java.util.Date;

/**
 *
 * @author tkulbeth
 */
public class VendorItemBO{
    
    private String VendorID;
    private String ConceptualID;
    private double cost;    
    private boolean alreadyInDB;
    private boolean isDirty;
    
    /** Creates a new instance of VendorItemBO */
    VendorItemBO() {
    }
    
    /** Creates a new instance of TransactionBO with an ID*/
    VendorItemBO(String VendorID, String ConceptualID) {
        setConceptualID(ConceptualID);
        setVendorID(VendorID);
        setIsDirty(true);        
    }

    /**
     * 
     * @return 
     */
    public String getVendorID() {
        return VendorID;
    }

    /**
     * 
     * @param VendorID 
     */
    public void setVendorID(String VendorID) {
        this.VendorID = VendorID;
        setIsDirty(true); 
    }

    /**
     * 
     * @return 
     */
    public String getConceptualID() {
        return ConceptualID;
    }

    /**
     * 
     * @param ConceptualID 
     */
    public void setConceptualID(String ConceptualID) {
        this.ConceptualID = ConceptualID;
        setIsDirty(true); 
    }

    /**
     * 
     * @return 
     */
    public double getCost() {
        return cost;
    }

    /**
     * 
     * @param cost 
     */
    public void setCost(double cost) {
        this.cost = cost;
        setIsDirty(true); 
    }

    /**
     * 
     * @return 
     */
    public boolean isAlreadyInDB() {
        return alreadyInDB;
    }

    /**
     * 
     * @param alreadyInDB 
     */
    public void setAlreadyInDB(boolean alreadyInDB) {
        this.alreadyInDB = alreadyInDB;
        setIsDirty(true); 
    }

    /**
     * 
     * @return 
     */
    public boolean getIsDirty() {
        return isDirty;
    }

    /**
     * 
     * @param isDirty 
     */
    public void setIsDirty(boolean isDirty) {
        this.isDirty = isDirty;
    }
    
    
     
       
}//end VendorItemBO
